import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInput;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.List;
import java.util.zip.InflaterInputStream;

import org.apache.http.Header;
import org.apache.http.HttpHost;
import org.apache.http.HttpResponse;
import org.apache.http.auth.AuthScope;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.client.CredentialsProvider;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.conn.params.ConnRoutePNames;
import org.apache.http.impl.client.BasicCookieStore;
import org.apache.http.impl.client.BasicCredentialsProvider;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.cookie.BasicClientCookie;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpParams;

import jj2000.j2k.entropy.decoder.ByteInputBuffer;

import com.qq.spirit.GameConstants;
import com.qq.spirit.GameConstants;
import com.qq.spirit.HttpClientUnit;
import com.qq.spirit.HttpUtil;
import com.qq.spirit.LoggerUtil;
import com.qq.spirit.db.DBUtil;
import com.qq.spirit.model.XmlDataUtil;

public class GameTest
{

	public static void main(String args[])
	{
		DBUtil.executeUpdate("update  u_game_user set game_nick_name='字段类型是'");
//		HttpClient httpclient = HttpClientUnit.getDefaultHttpClient(2);
//		List<Header> headList = new ArrayList<Header>();
//		try
//		{
//			HttpGet httpget = new HttpGet(GameConstants.PLAY_USER_INFO_URL);
//			HttpUtil.setParam(httpget);
//			httpget.setHeader("Cookie","JSESSIONID=6565B61995A4C06D28A3D55182E746A4, userid=6906579, PHPSESSID=de6308e2e740652b31720bd5f03784fc, usersign=d718faf4f7f81da5f9143bb8d8d8450e");
//			HttpResponse response = httpclient.execute(httpget);
//			HttpUtil.getResponseCodingType(response);
//			HttpUtil.getHeaderList(response,headList);
//			System.out.println(HttpUtil.decodeResponse(response));
//		} catch (Exception e)
//		{
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
	}

	public static void test2()
	{
		List<BasicNameValuePair> pList = new ArrayList<BasicNameValuePair>();
		pList.add(new BasicNameValuePair("tourl", ""));
		pList.add(new BasicNameValuePair("entergame", ""));
		pList.add(new BasicNameValuePair("districtid", "103"));
		pList.add(new BasicNameValuePair("username", "cyb120"));
		pList.add(new BasicNameValuePair("password", "123123"));

	}
}
